﻿<Window x:Class="Airborne.ScrumPoker.Presentation.ProductOwner.Shell"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:presentation="clr-namespace:Airborne.ScrumPoker.Module;assembly=Airborne.ScrumPoker.Module"
    xmlns:cal="http://www.codeplex.com/CompositeWPF"
    Title="Airborne - Scrum Poker Project Owner" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    AutomationProperties.AutomationId="shellProjectOwnerView"
    mc:Ignorable="d"
    MaxHeight="800"
    MinHeight="650"
    Width="1024 " Height="768" Background="#FFBCBCC6" 
    >

    <Window.Resources>
        <Style x:Key="GridSplitterPreviewStyle">
            <Setter Property="Control.Template">
                <Setter.Value>
                    <ControlTemplate>
                        <Rectangle Fill="#80000000"/>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="MainSplitterStyle" TargetType="{x:Type GridSplitter}">
        <Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
        <Setter Property="PreviewStyle" Value="{StaticResource GridSplitterPreviewStyle}"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type GridSplitter}">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <Border  Width="4" Height="35" Background="#ccc" CornerRadius="2,2,2,2" />
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</Window.Resources> 

    <Grid Name="containerGrid">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto" MinHeight="688.08"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="300"/>
            <ColumnDefinition Width="5" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Border d:LayoutOverrides="HorizontalAlignment" Grid.ColumnSpan="3">
            <StackPanel Width="Auto" Height="43" Background="#FF013AA5" VerticalAlignment="Top"/>
        </Border>
        <Border Grid.Column="0" Margin="5,5,5,5" Grid.Row="1" Background="#9494a6" Padding="5" CornerRadius="5">
            <StackPanel Width="Auto" Height="Auto">
                <ItemsControl cal:RegionManager.RegionName="{x:Static presentation:RegionNames.TeamFoundation}" Width="Auto" Height="Auto" HorizontalAlignment="Stretch"  VerticalAlignment="Stretch"/>
            </StackPanel>
        </Border>
        <GridSplitter Grid.Column="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ShowsPreview="True" Width="5" Background="#FFA3A3B4" Margin="0,10,0,10" Grid.Row="1" Style="{DynamicResource MainSplitterStyle}" MouseDoubleClick="GridSplitter_MouseDoubleClick" />
        <Border Grid.Column="2" Margin="5,5,5,5" Grid.Row="1"  CornerRadius="5" Background="White" Padding="5" >
            <StackPanel Name="mainRegionStackPanel" ScrollViewer.VerticalScrollBarVisibility="Auto" MaxHeight="800" Background="White" Width="Auto"  Margin="0,0,0,0" SizeChanged="mainRegionStackPanel_SizeChanged">
                 <ContentControl Name="mainRegionContent" cal:RegionManager.RegionName="{x:Static presentation:RegionNames.MainRegion}"  Width="Auto" BorderBrush="Red" BorderThickness="2" />
            </StackPanel>
        </Border>
        <Image Grid.ColumnSpan="3" Source="pack://application:,,,/Airborne.ScrumPoker.Module.ProductOwner;Component/Resources/Images/header.png" Stretch="None" HorizontalAlignment="Left" VerticalAlignment="Top"/>
    </Grid>
</Window>
